<?php if ($this->_var['brand_list']): ?>

<div class="title-div"><img src="themes/default_old/images/brands.gif" alt="" width="158" height="39" /></div>
<div class="content-div">
  <div style="list-style: none; margin: 10px; padding: 0;">
    <?php $_from = $this->_var['brand_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'brand');if (count($_from)):
    foreach ($_from AS $this->_var['brand']):
?>
    <?php if ($this->_var['brand']['brand_logo']): ?>
    <a href="<?php echo $this->_var['brand']['url']; ?>"><img src="<?php echo $this->_var['data_dir']; ?>/brandlogo/<?php echo $this->_var['brand']['brand_logo']; ?>" alt="<?php echo htmlspecialchars($this->_var['brand']['brand_name']); ?> (<?php echo $this->_var['brand']['goods_num']; ?>)" border="0" /></a>
    <?php else: ?>
    <div><img src="themes/default_old/images/cat_arrow.gif" alt="arrow" /> <a href="<?php echo $this->_var['brand']['url']; ?>"><?php echo htmlspecialchars($this->_var['brand']['brand_name']); ?> <?php if ($this->_var['brand']['goods_num']): ?>(<?php echo $this->_var['brand']['goods_num']; ?>)<?php endif; ?></a></div>
    <?php endif; ?>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </div>
</div>
<?php endif; ?>
